package com.by.mq;

import org.springframework.amqp.core.AbstractExchange;

import java.util.HashMap;
import java.util.Map;

public class LazyExchange extends AbstractExchange {

    static Map<String, Object> map = new HashMap<>();

    static {
        map.put("x-delayed-type", "direct");
    }

    @Override
    public String getType() {
        return "x-delayed-message";
    }

    public LazyExchange(String name) {
        super(name, true, false, map);
    }


}